#ifndef CORESERVER_H
#define CORESERVER_H

#include <QObject>
#include <QThread>
#include <QMutexLocker>
#include <QtNetwork/QtNetwork>
#include <QTcpServer>
#include <QMap>
#include "handlers/sessionhandler.h"

class CoreServer : public QTcpServer
{
    Q_OBJECT
public:
    CoreServer(QObject *parent = 0);
    virtual ~CoreServer(){}
private slots:
protected:
    void incomingConnection(int socketDescriptor);

private:
    QList<Handlers::SessionHandler> _clients;
};

#endif // CORESERVER_H
